package com.xiaolin.designmode.state;

/**
 * @ClassName ConcreteStateA
 * @Description 具体状态类
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/6
 * @Version 1.0
 */
public class ConcreteStateA extends State {
    @Override
    public void handle(Context context) {
        System.out.println("这是状态A");
        //处理状态的同时，把环境的状态置为另外一种状态
        context.setState(new ConcreteStateB());
    }
}
